package com.eastmoney.emis.edda.domain.service.edda;

import com.eastmoney.emis.edda.application.vo.EddaBindVo;
import com.eastmoney.emis.edda.application.vo.EddaOtpRegenerationVo;
import com.eastmoney.emis.edda.domain.entity.EddaBind;

/**
 * @description: Description
 * @projectName: EDDA-HSBC
 * @package: com.eastmoney.emis.edda.domain.repository
 * @author: 汪程程
 * @date: 2022/9/27 5:31 PM
 * @version: 1.0
 */
public interface EddaService {

    /**
     * 检查通过返回 true, 反之返回 false
     * @param command
     * @return
     */
    boolean bindCheck(EddaBindCommand command);

    EddaBindVo bind(EddaBindCommand command);

    EddaBind findEddaBind(EddaBindQuery query);

    void otpConfirm(EddaOtpConfirmCommand eddaOtpConfirmCommand);

    EddaOtpRegenerationVo otpRegeneration(EddaOtpRegenerationCommand eddaOtpRegenerationCommand);

}
